package org.grottarossa.ui.core.controls.searchuser;

import java.io.Serializable;

/***
 * Rappresenta il filtro per la maschera di ricerca utenti/ruoli
 * @author 
 *
 */
public class SearchUserData implements Serializable
{
	private String textFilter = "";
	private String typeFilter = "";
	private String fieldFilter = "";

	public String getTextFilter() {
		return textFilter;
	}
	public void setTextFilter(String textFilter) {
		this.textFilter = textFilter;
	}
	public String getTypeFilter() {
		return typeFilter;
	}
	public void setTypeFilter(String typeFilter) {
		this.typeFilter = typeFilter;
	}
	public String getFieldFilter() {
		return fieldFilter;
	}
	public void setFieldFilter(String fieldFilter) {
		this.fieldFilter = fieldFilter;
	}

	/***
	 * Crea una copia dell'oggetto
	 */
	public SearchUserData clone()
	{
		SearchUserData result = new SearchUserData();

		result.setFieldFilter(getFieldFilter());
		result.setTextFilter(getTextFilter());
		result.setTypeFilter(getTypeFilter());

		return result;
	}
}
